package com.example.campus_order_sb.service;

import com.example.campus_order_sb.dto.OrderResponse;
import com.example.campus_order_sb.dto.PlaceOrderRequest;
import com.example.campus_order_sb.enums.OrderStatus;

import java.util.List;

public interface OrderService {
    OrderResponse createOrder(Integer userId, PlaceOrderRequest request);

    OrderResponse getOrderById(Integer orderId);

    List<OrderResponse> getUserOrders(Integer userId);

    List<OrderResponse> getAllOrders();

    OrderResponse updateOrderStatus(Integer orderId, OrderStatus status);

    OrderResponse cancelOrder(Integer orderId);
}